Optimal. Leaf size=72 \[ -\frac {2 b^2 p x}{5 a^2}+\frac {2 b p x^3}{15 a}+\frac {2 b^{5/2} p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{5 a^{5/2}}+\frac {1}{5} x^5 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2505, 269, 308,
211} \begin {gather*} \frac {2 b^{5/2} p \text {ArcTan}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{5 a^{5/2}}-\frac {2 b^2 p x}{5 a^2}+\frac {1}{5} x^5 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )+\frac {2 b p x^3}{15 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 269
Rule 308
Rule 2505
Rubi steps
\begin {align*} \int x^4 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \, dx &=\frac {1}{5} x^5 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )+\frac {1}{5} (2 b p) \int \frac {x^2}{a+\frac {b}{x^2}} \, dx\\ &=\frac {1}{5} x^5 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )+\frac {1}{5} (2 b p) \int \frac {x^4}{b+a x^2} \, dx\\ &=\frac {1}{5} x^5 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )+\frac {1}{5} (2 b p) \int \left (-\frac {b}{a^2}+\frac {x^2}{a}+\frac {b^2}{a^2 \left (b+a x^2\right )}\right ) \, dx\\ &=-\frac {2 b^2 p x}{5 a^2}+\frac {2 b p x^3}{15 a}+\frac {1}{5} x^5 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )+\frac {\left (2 b^3 p\right ) \int \frac {1}{b+a x^2} \, dx}{5 a^2}\\ &=-\frac {2 b^2 p x}{5 a^2}+\frac {2 b p x^3}{15 a}+\frac {2 b^{5/2} p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{5 a^{5/2}}+\frac {1}{5} x^5 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.01, size = 49, normalized size = 0.68 \begin {gather*} \frac {2 b p x^3 \, _2F_1\left (-\frac {3}{2},1;-\frac {1}{2};-\frac {b}{a x^2}\right )}{15 a}+\frac {1}{5} x^5 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.07, size = 0, normalized size = 0.00 \[\int x^{4} \ln \left (c \left (a +\frac {b}{x^{2}}\right )^{p}\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 59, normalized size = 0.82 \begin {gather*} \frac {1}{5} \, x^{5} \log \left ({\left (a + \frac {b}{x^{2}}\right )}^{p} c\right ) + \frac {2}{15} \, b p {\left (\frac {3 \, b^{2} \arctan \left (\frac {a x}{\sqrt {a b}}\right )}{\sqrt {a b} a^{2}} + \frac {a x^{3} - 3 \, b x}{a^{2}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 178, normalized size = 2.47 \begin {gather*} \left [\frac {3 \, a^{2} p x^{5} \log \left (\frac {a x^{2} + b}{x^{2}}\right ) + 3 \, a^{2} x^{5} \log \left (c\right ) + 2 \, a b p x^{3} + 3 \, b^{2} p \sqrt {-\frac {b}{a}} \log \left (\frac {a x^{2} + 2 \, a x \sqrt {-\frac {b}{a}} - b}{a x^{2} + b}\right ) - 6 \, b^{2} p x}{15 \, a^{2}}, \frac {3 \, a^{2} p x^{5} \log \left (\frac {a x^{2} + b}{x^{2}}\right ) + 3 \, a^{2} x^{5} \log \left (c\right ) + 2 \, a b p x^{3} + 6 \, b^{2} p \sqrt {\frac {b}{a}} \arctan \left (\frac {a x \sqrt {\frac {b}{a}}}{b}\right ) - 6 \, b^{2} p x}{15 \, a^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 148 vs.
\(2 (70) = 140\).
time = 33.56, size = 148, normalized size = 2.06 \begin {gather*} \begin {cases} \frac {x^{5} \log {\left (0^{p} c \right )}}{5} & \text {for}\: a = 0 \wedge b = 0 \\\frac {2 p x^{5}}{25} + \frac {x^{5} \log {\left (c \left (\frac {b}{x^{2}}\right )^{p} \right )}}{5} & \text {for}\: a = 0 \\\frac {x^{5} \log {\left (a^{p} c \right )}}{5} & \text {for}\: b = 0 \\\frac {x^{5} \log {\left (c \left (a + \frac {b}{x^{2}}\right )^{p} \right )}}{5} + \frac {2 b p x^{3}}{15 a} - \frac {2 b^{2} p x}{5 a^{2}} + \frac {b^{3} p \log {\left (x - \sqrt {- \frac {b}{a}} \right )}}{5 a^{3} \sqrt {- \frac {b}{a}}} - \frac {b^{3} p \log {\left (x + \sqrt {- \frac {b}{a}} \right )}}{5 a^{3} \sqrt {- \frac {b}{a}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.45, size = 75, normalized size = 1.04 \begin {gather*} \frac {1}{5} \, p x^{5} \log \left (a x^{2} + b\right ) - \frac {1}{5} \, p x^{5} \log \left (x^{2}\right ) + \frac {1}{5} \, x^{5} \log \left (c\right ) + \frac {2 \, b p x^{3}}{15 \, a} + \frac {2 \, b^{3} p \arctan \left (\frac {a x}{\sqrt {a b}}\right )}{5 \, \sqrt {a b} a^{2}} - \frac {2 \, b^{2} p x}{5 \, a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.26, size = 56, normalized size = 0.78 \begin {gather*} \frac {x^5\,\ln \left (c\,{\left (a+\frac {b}{x^2}\right )}^p\right )}{5}+\frac {2\,b^{5/2}\,p\,\mathrm {atan}\left (\frac {\sqrt {a}\,x}{\sqrt {b}}\right )}{5\,a^{5/2}}+\frac {2\,b\,p\,x^3}{15\,a}-\frac {2\,b^2\,p\,x}{5\,a^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________